//
//  XHRouterService.h
//  XHRouter
//
//  Created by xinph on 2020/3/16.
//  Copyright © 2020 xinph. All rights reserved.
// 不同的组件实现该协议定义对应的属性

#import <Foundation/Foundation.h>
#import "XHEnumConstant.h"

NS_ASSUME_NONNULL_BEGIN

/// action参数键名
static NSString * const XHCommonActionParamKey = @"XHCommonActionParamKey";

@protocol XHRouterService <NSObject>
/// 响应者名称
@property (nonatomic, copy, readonly) NSString  *target;
/// 方法名称
@property (nonatomic, copy, readonly) NSString  *action;
/// 是否缓存
@property (nonatomic, assign, readonly) BOOL  shouldCacheTarget;
/// 参数
@property (nonatomic, strong, readonly) NSDictionary *commonParams;

@end

NS_ASSUME_NONNULL_END
